import VueRouter from 'vue-router'
import home from './components/tabbar/home.vue'
import member from './components/tabbar/member.vue'
import search from './components/tabbar/search.vue'
import shopcar from './components/tabbar/shopcar.vue'
import newsList from './components/news/newsList.vue'
import newsinfo from './components/news/newsinfo.vue'
import PhotoInfo from './components/photos/PhotoInfo.vue'
import PhotoList from './components/photos/PhotoList.vue'
import goodslist from './components/goods/goodslist.vue'
import goodinfo from './components/goods/goodinfo.vue'
import goodsdesc from './components/goods/goodsdesc.vue'
import goodscomment from './components/goods/goodscomment.vue'
var router = new VueRouter({
  routes:[
    {path:'/',redirect:'/home'},
    {path:'/home',component:home},
    {path:'/member',component:member},
    {path:'/shopcar',component:shopcar},
    {path:'/search',component:search},
    {path:'/home/newsList',component:newsList},
    {path:'/home/newsinfo/:id',component:newsinfo},
    {path:'/home/PhotoList',component:PhotoList},
    {path:'/home/PhotoInfo/:id',component:PhotoInfo},
    {path:'/home/goodslist',component:goodslist},
    {path:'/home/goodinfo/:id',component:goodinfo},
    {path:'/home/goodsdesc/:id',component:goodsdesc,name:'desc'},
    {path:'/home/goodscomment/:id',component:goodscomment,name:'goodscomment'},
    
  ],
  linkActiveClass:'mui-active'
}) 

export default router;